/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package exercicio15;

/**
 *
 * @author Caio
 */
public class IncomeVisitor implements IVisitor {

    @Override
    public void Visit(Element element) {
        Employee employee = new Employee();
        
        employee.setIncome(1.10);
        System.out.println("[0]  [1]'s new income : {2:C} "+employee.getClass().getName()+employee.getName()+employee.getIncome());
        
    }
    
}
